[.net] Treeview prevent Node collapse (weird problem)
Posted
by cssnoob
on Stack Overflow
See other posts from Stack Overflow
or by cssnoob
Published on 2009-06-25T13:28:39Z
Indexed on
2010/05/31
12:03 UTC
Read the original article
Hit count: 155
Hey guyz!
I have a .net 2.0 C# Project. I have a Treeview with 2 Nodes, each of them has many child nodes. When you click on a child node, a PDF is displayed in a webbrowser control depending on the properties of the node. Fine, but the problem is that when both Nodes are expanded, and I click on a child node, the other node gets collapsed! I don't have any code that collapses any node of the treeview, but somehow it happens! I also had a look at the BeforeCollapse Event, but somehow it doesn't fire, alltough the other node collapses!
Can anyone imagine why this happens? I would be very grateful if anyone can teach me how to prevent this happening!
Thank you very much!
© Stack Overflow or respective owner